The Point Structure
You use thegxPoint
structure in a number of situations; for example, to specify the geometry of a point shape, to specify the position of geometric points in the geometries of other geometric shape types, to specify a location to hit-test, to specify the position of a bitmap, and so on.The
gxPoint
structure is defined as follows:
struct gxPoint { Fixed x; Fixed y; };The location of the origin depends on the context where you use the point; for example, it might be the upper-left corner of a view port.
Field Description
x
- A horizontal distance. Greater values of the
x
field indicate distances further to the right.y
- A vertical distance. Greater values of the
y
field indicate distances further down.Notice that the
x
andy
fields are of typeFixed
. QuickDraw GX allows you to specify fractional coordinate positions.For more information about coordinates and coordinate spaces, see Inside Macintosh: QuickDraw GX Objects.
For more information about points and point shapes, see "Point Shapes" on page 2-16.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help